Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise ratelimit user friendly and other network errors. #1109 #1117

Merged
merged 3 commits into from
May 26, 2021

Conversation

bhargavh
Copy link
Contributor

Just a small PR that will give better readable errors when the user is ratelimited and also raise on error wherever a request happens , Sorry if I did it wrong. Please CR and tell me any feedback
Regards.

@bhargavh bhargavh changed the title Raise ratelimit user friendly and other network errors. #1109 Raise ratelimit user friendly and other network errors. closes #1109 Mar 29, 2021
@bhargavh bhargavh changed the title Raise ratelimit user friendly and other network errors. closes #1109 Raise ratelimit user friendly and other network errors. closes intel/cve-bin-tool#1109 Mar 29, 2021
@bhargavh bhargavh changed the title Raise ratelimit user friendly and other network errors. closes intel/cve-bin-tool#1109 Raise ratelimit user friendly and other network errors. #1109 Mar 29, 2021
@bhargavh
Copy link
Contributor Author

#1109

@CabTheProgrammer
Copy link
Contributor

Looks interesting! Could you also print the http error as well so that the user can see it?

@codecov-io
Copy link

Codecov Report

Merging #1117 (07c2704) into main (9edf66d) will decrease coverage by 0.05%.
The diff coverage is 66.66%.

❗ Current head 07c2704 differs from pull request most recent head 5b0f70e. Consider uploading reports for the commit 5b0f70e to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
- Coverage   86.67%   86.61%   -0.06%     
==========================================
  Files         181      181              
  Lines        3016     3025       +9     
  Branches      333      334       +1     
==========================================
+ Hits         2614     2620       +6     
- Misses        320      322       +2     
- Partials       82       83       +1     
Flag Coverage Δ
longtests 86.61% <66.66%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cve_bin_tool/cvedb.py 88.27% <62.50%> (-0.78%) ⬇️
cve_bin_tool/error_handler.py 87.93% <100.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9edf66d...5b0f70e. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants